GDK W32: Remove an unnecessary type check
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 26 Nov 2017 13:15:53 +0000 (13:15 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:42 +0000 (10:38 +0000)
No idea why it's here, the hash table can store any kind of data,
there's no reason why it wouldn't be able to store an old X string type.
Might be a holdout from the old days, when strings were handled in
a special way (stored directly in the clipboard?).

https://bugzilla.gnome.org/show_bug.cgi?id=786509

gdk/win32/gdkselection-win32.c

index 64f5a53fefc8b1151e278b9004cd38cd78fb1bea..d793f739c72e3bcce61f992cd1460a0d1d2b4456 100644 (file)
@@ -757,8 +757,6 @@ selection_property_store (GdkWindow *owner,
   GdkSelProp *prop;
   GdkWin32Selection *win32_sel = _gdk_win32_selection_get ();
 
-  g_return_if_fail (type != GDK_TARGET_STRING);
-
   prop = g_hash_table_lookup (win32_sel->sel_prop_table, GDK_WINDOW_HWND (owner));
 
   if (prop != NULL)